package day14;

import java.util.Properties;

/**
 * @author oldliu
 * @since 1.0
 */
public class Product {
    private int no;
    private String name;
    private double price;
    private String unit;
    private int stockCount;
    public Product(){}

    public Product(int no, String name, double price, String unit, int stockCount) {
        this.no = no;
        this.name = name;
        this.price = price;
        this.unit = unit;
        this.stockCount = stockCount;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getStockCount() {
        return stockCount;
    }

    public void setStockCount(int stockCount) {
        this.stockCount = stockCount;
    }

    @Override
    public String toString() {
        return "Product{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", unit='" + unit + '\'' +
                ", stockCount=" + stockCount +
                '}';
    }
}
